import request from '@/utils/request'
/**
 * @description 活动列表
 * @param
 * @returns
 */
export async function BuyList(data) {
	return request({
		url: '/supplier/activity.buyactivity/index',
		method: 'post',
		data,
	});
}
/**
 * @description 添加
 * @param
 * @returns
 */
export async function saveBuy(data) {
	return request({
		url: '/supplier/activity.buyactivity/add',
		method: 'post',
		data,
	});
}
/**
 * @description 详情
 * @param
 * @returns
 */
export async function detailBuy(data) {
	return request({
		url: '/supplier/activity.buyactivity/edit',
		method: 'get',
		data,
	});
}
/**
 * @description 编辑
 * @param
 * @returns
 */
export async function editBuy(data) {
	return request({
		url: '/supplier/activity.buyactivity/edit',
		method: 'post',
		data,
	});
}
export async function delBuy(data) {
	return request({
		url: '/supplier/activity.buyactivity/delete',
		method: 'post',
		data,
	});
}
export async function editState(data) {
	return request({
		url: '/supplier/activity.buyactivity/state',
		method: 'post',
		data,
	});
}


 